{"ast":null,"code":"var _jsxFileName = \"/data/messenger.client/src/components/ContactsBlock/index.tsx\";\nimport React from 'react';\nimport { Contacts } from \"../index\";\nimport \"./ContactsBlock.scss\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-dev-runtime\";\nconst ContactsBlock = props => {\n  return /*#__PURE__*/_jsxDEV(_Fragment, {\n    children: [props.addRequestList.items.length > 0 && /*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"contacts__block\",\n      children: [/*#__PURE__*/_jsxDEV(\"div\", {\n        className: \"contacts__block-header\",\n        children: /*#__PURE__*/_jsxDEV(\"div\", {\n          className: \"contacts__block-header-top\",\n          children: /*#__PURE__*/_jsxDEV(\"span\", {\n            children: \"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435 \\u0437\\u0430\\u044F\\u0432\\u043A\\u0438\"\n          }, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 13,\n            columnNumber: 29\n          }, this)\n        }, void 0, false, {\n          fileName: _jsxFileName,\n          lineNumber: 12,\n          columnNumber: 25\n        }, this)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 11,\n        columnNumber: 21\n      }, this), /*#__PURE__*/_jsxDEV(Contacts, {\n        contacts: props.addRequestList,\n        addRequest: true,\n        currentUser: props.currentUser\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 16,\n        columnNumber: 21\n      }, this)]\n    }, void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 10,\n      columnNumber: 17\n    }, this), props.sentRequestList.items.length > 0 && /*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"contacts__block\",\n      children: [/*#__PURE__*/_jsxDEV(\"div\", {\n        className: \"contacts__block-header\",\n        children: /*#__PURE__*/_jsxDEV(\"div\", {\n          className: \"contacts__block-header-top\",\n          children: /*#__PURE__*/_jsxDEV(\"span\", {\n            children: \"\\u0418\\u0441\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435 \\u0437\\u0430\\u044F\\u0432\\u043A\\u0438\"\n          }, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 27,\n            columnNumber: 29\n          }, this)\n        }, void 0, false, {\n          fileName: _jsxFileName,\n          lineNumber: 26,\n          columnNumber: 25\n        }, this)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 25,\n        columnNumber: 21\n      }, this), /*#__PURE__*/_jsxDEV(Contacts, {\n        contacts: props.sentRequestList,\n        sentRequest: true,\n        currentUser: props.currentUser\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 30,\n        columnNumber: 21\n      }, this)]\n    }, void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 24,\n      columnNumber: 17\n    }, this), props.allAcceptedList.items.length > 0 && /*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"contacts__block\",\n      children: [/*#__PURE__*/_jsxDEV(\"div\", {\n        className: \"contacts__block-header\",\n        children: /*#__PURE__*/_jsxDEV(\"div\", {\n          className: \"contacts__block-header-top\",\n          children: /*#__PURE__*/_jsxDEV(\"span\", {\n            children: \"\\u0412\\u0441\\u0435 \\u043A\\u043E\\u043D\\u0442\\u0430\\u043A\\u0442\\u044B\"\n          }, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 41,\n            columnNumber: 29\n          }, this)\n        }, void 0, false, {\n          fileName: _jsxFileName,\n          lineNumber: 40,\n          columnNumber: 25\n        }, this)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 39,\n        columnNumber: 21\n      }, this), /*#__PURE__*/_jsxDEV(Contacts, {\n        contacts: props.allAcceptedList,\n        allAccepted: true,\n        currentUser: props.currentUser\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 44,\n        columnNumber: 21\n      }, this)]\n    }, void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 38,\n      columnNumber: 17\n    }, this)]\n  }, void 0, true);\n};\n_c = ContactsBlock;\nexport default ContactsBlock;\nvar _c;\n$RefreshReg$(_c, \"ContactsBlock\");","map":{"version":3,"names":["React","Contacts","ContactsBlock","props","addRequestList","items","length","currentUser","sentRequestList","allAcceptedList"],"sources":["/data/messenger.client/src/components/ContactsBlock/index.tsx"],"sourcesContent":["import React from 'react';\nimport {Contacts} from \"../index\";\nimport {ContactsBlockProps} from \"../../models/props/ContactsBlockProps\";\nimport \"./ContactsBlock.scss\";\nconst ContactsBlock: React.FC<ContactsBlockProps> = (props) => {\n\n    return (\n        <>\n            {(props.addRequestList.items.length > 0 &&\n                <div className=\"contacts__block\">\n                    <div className=\"contacts__block-header\">\n                        <div className=\"contacts__block-header-top\">\n                            <span>Входящие заявки</span>\n                        </div>\n                    </div>\n                    <Contacts\n                        contacts={props.addRequestList}\n                        addRequest={true}\n                        currentUser={props.currentUser}\n                    />\n                </div>\n            )}\n            {(props.sentRequestList.items.length > 0 &&\n                <div className=\"contacts__block\">\n                    <div className=\"contacts__block-header\">\n                        <div className=\"contacts__block-header-top\">\n                            <span>Исходящие заявки</span>\n                        </div>\n                    </div>\n                    <Contacts\n                        contacts={props.sentRequestList}\n                        sentRequest={true}\n                        currentUser={props.currentUser}\n                    />\n                </div>\n            )}\n            {(props.allAcceptedList.items.length > 0 &&\n                <div className=\"contacts__block\">\n                    <div className=\"contacts__block-header\">\n                        <div className=\"contacts__block-header-top\">\n                            <span>Все контакты</span>\n                        </div>\n                    </div>\n                    <Contacts\n                        contacts={props.allAcceptedList}\n                        allAccepted={true}\n                        currentUser={props.currentUser}\n                    />\n                </div>\n            )}\n        </>\n    );\n}\n\nexport default ContactsBlock;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,QAAQ,QAAO,UAAU;AAEjC,OAAO,sBAAsB;AAAC;AAAA;AAC9B,MAAMC,aAA2C,GAAIC,KAAK,IAAK;EAE3D,oBACI;IAAA,WACMA,KAAK,CAACC,cAAc,CAACC,KAAK,CAACC,MAAM,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